package es.ats.codington.festival.domain;

/**
 * Class to represent Visitor domain class. This class extends of People class
 */
public class Visitor extends People {

	// Encapsulated data fields for Visitor class
	/**
	 * Member variables of Visitor class
	 */
	private int idVisitor;
	private String visitorName;
	private String password;
	boolean isAdmin;
	
	
	
	
	// --------------Getters and Setters---------------------------
	
	public int getIdVisitor() {
		return idVisitor;
	}
	public void setIdVisitor(int idVisitor) {
		this.idVisitor = idVisitor;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getVisitorName() {
		return visitorName;
	}
	public void setVisitorName(String visitorName) {
		this.visitorName = visitorName;
	}
	public boolean getIsAdmin() {
		return isAdmin;
	}
	public void setIsAdmin(boolean isAdmin) {
		this.isAdmin = isAdmin;
	}
	
	//------------------Constructor---------------------
	
	/**
	 * Visitor class constructor without parameters.
	 */
	public Visitor(){
		super();
	}
	
		/**
		 * Visitor class constructor with all parameters of the class.
		 * 
		 * @param firstName
		 * @param lastName
		 * @param email
		 * @param phone
		 * @param address
		 * @param dni
		 * @param idVisitor
		 * @param visitorName
		 * @param password
		 */
		public Visitor(String firstName, String lastName, String email, long phone,
			String address, String dni, String visitorName,
			String password) {
		super(firstName, lastName, email, phone, address, dni);
		this.visitorName = visitorName;
		this.password = password;

	}
}
